//
// Created by qiang on 2020/3/27.
//

#include "RightTriangle.h"

RightTriangle::RightTriangle(double a, double b) {

    this->a = a;
    this->b = b;

}

double RightTriangle::GetCircumference() {
    return this->a * 2 + this->b * 2;
}

double RightTriangle::GetArea() {
    return this->a * 2 + this->b * 2;
}
